package com.qtong.sms.control;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class ControlServer {

	public void listen(){
		try {
			ServerSocket serverSocket = new ServerSocket(8875);
			while(true){
				Socket socket = serverSocket.accept();
				new Thread(new SocketThread(socket)).start();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
